import draggable from "./draggable.js";
import speak from "./speak.js";

const directive = {  // 汇总指令
    draggable,
    speak
}

export default {
    install(app) { // app === vue实例
        // 注册指令
        Object.keys(directive).forEach(key => {
            app.directive(key, directive[key])  // 注册（名字，指令代码）
        })
    }
}